Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate: handle logits_warper update in models with custom generate fn #31957

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

gante
Copy link
Member

@gante gante commented Jul 14, 2024

What does this PR do?

Oops, #31956 written by me broke some models with custom generate loop (logits_warper is no longer optional).

This PR corrects failing models, and takes the opportunity to standardize (i.e. copy-paste patterns) generate on musicgen models.

cc @ylacombe

@gante gante requested a review from amyeroberts July 14, 2024 16:11
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@ylacombe ylacombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @gante, thanks for standardizing with the current logic!

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks fixing and standardizing our generation logic!

@ydshieh ydshieh merged commit 9075004 into huggingface:main Jul 15, 2024
21 of 23 checks passed
@gante gante deleted the custom_generate_logits_warper branch July 15, 2024 10:13
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Jul 16, 2024
…e fn (huggingface#31957)

handle logits_warper update in models with custom generate fn
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Jul 19, 2024
…e fn (huggingface#31957)

handle logits_warper update in models with custom generate fn
MHRDYN7 pushed a commit to MHRDYN7/transformers that referenced this pull request Jul 23, 2024
…e fn (huggingface#31957)

handle logits_warper update in models with custom generate fn
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Jul 24, 2024
…e fn (huggingface#31957)

handle logits_warper update in models with custom generate fn
itazap pushed a commit that referenced this pull request Jul 25, 2024
…e fn (#31957)

handle logits_warper update in models with custom generate fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants